//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.datafactory.Team.common;

public class Result {
    private String code;
    private String msg;
    private Object data;
    private static final String SUCCESS = "0";
    private static final String ERROR = "-1";

    public Result() {
    }

    public static Result success1() {
        Result result = new Result();
        result.setCode("0");
        return result;
    }

    public static Result success2(Object data) {
        Result result = new Result();
        result.setCode("0");
        result.setData(data);
        return result;
    }

    public static Result error(String msg) {
        Result result = new Result();
        result.setCode("-1");
        result.setMsg(msg);
        return result;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return this.data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
